__author__="JLocke"
__date__ ="$Sep 25, 2009 11:53:00 PM$"

class GameCard():
    faceUp = False      #tells if the card is face up or not
    cardBack = None     #image that represents the back of the card
    cardFront = None    #image that represents the front of the card
    cardCode = None     #integer for matching cards

    def draw(self, x, y, width=None, height=None):
        """
        Draw the card with the lower-left corner of the card at the passed
        x, y point. Uses the passed width and height if they are provided.
        Draws the front if faceUp is True and draws the back if faceUp is False
        """
        if not self.faceUp:
            self.cardBack.blit(x, y, width=width, height=height)
        else:
            self.cardFront.blit(x, y, width=width, height=height)